<include file="Public/header"/>
<div class="x-nav">
      <span class="layui-breadcrumb">
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">

      <xblock>
        <button class="layui-btn" onclick="x_admin_show('添加角色','{:U('rule_add')}')"><i class="layui-icon"></i>添加</button>

        <span class="x-right" style="line-height:40px">共有数据：{$count} 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>

            <th>ID</th>
            <th>角色</th>
            <th>权限</th>
            <th>状态</th>
            <th>操作</th></tr>
        </thead>
        <tbody>
        <foreach name="info" item="v">
          <tr>
                        <td>{$v.id}</td>
                        <td>{$v.title}</td>
                        <td>{$v.subname}</td>
                        <td><if condition="$v.status eq 1" ><font color='green'>正常</font><else/><font color='red'>停用</font></if></td>
			            <td class="td-manage">
			              <a title="编辑" class="layui-btn layui-btn-xs"  onclick="x_admin_show('编辑','{:U('role_modi',array('nid'=>$v['id']))}')" href="javascript:;">
			                编辑
			              </a>
			
			              <a title="删除"  class="layui-btn layui-btn-warm layui-btn-xs" onclick="single_del(this,'{$v['id']}','{:U('role_del')}')" href="javascript:;">
			                删除
			              </a>
			            </td>
          </tr>
        </foreach>
        </tbody>
      </table>
      <div class="page" id="page">
        {$page}
      </div>
    </div>
<include file="Public/footer"/>

